package com.hitrust.gs.action;

import com.hitrust.gs.business.GSBargainProcessor;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.vo.GSBargainInfoVO;

public class GSBalanceManageBargainAction extends GSBaseAction {

	public String execute(GSBaseForm aForm) throws Exception {
		try{
			String tBgnId = aForm.getRequest().getParameter("bgnId");
			String tBgnSerl = aForm.getRequest().getParameter("bgnSerl");
			GSBargainProcessor tBargainProc = new GSBargainProcessor();
			GSBargainInfoVO tVO = tBargainProc.getBargainInfo(tBgnId,tBgnSerl);
			aForm.getRequest().setAttribute("bargaindetail",tVO);
		}catch(Exception e){
			aForm.getRequest().setAttribute("window","true");
			throw e;
		}
		return GSBaseConstants.FORWARD_SUCCESS;
	}

}
